package basic

import (
	"fmt"
	"runtime"
	"sync"
)

var wg sync.WaitGroup

func Goroutine() {
	runtime.GOMAXPROCS(2)
	a := func() {
		fmt.Print("12312")
	}
	wg.Add(1)
	go a()
	fmt.Print("main")
	wg.Wait()
}

func hello() {
	fmt.Print("hello")
	defer wg.Done()
}
